﻿//Get tất cả cá station có trong cơ sỡ dữ liệu hiện tại
function getAllStation() {
    BusService.loadAllStationList(OnCompleteGetAllStation, OnError, OnTimeOut);
}

// get Ruote to Draw
function findPathBetweenTwoStation1(lat1, lng1, lat2, lng2, walk, changeRoute) {

    BusService.findPathBetweenTwoStation1(lat1, lng1, lat2, lng2, walk, changeRoute, OnCompleteGetWay, OnErrorWay, OnTimeOut);
}
// get Ruote to Draw
function findPathBetweenTwoStation(idStationStart, idStationEnd, walk, changeRoute) {

    BusService.findPathBetweenTwoStation(idStationStart, idStationEnd, walk, changeRoute, OnCompleteGetWay, OnError, OnTimeOut);
}
//getAllRoute
function getBusRoutes() {

    BusService.getBusRoutes(OnCompleteGetBusRoutes, OnError, OnTimeOut);
}
// get Ruote to Draw chu hoang thanh
function getBusRouteToDraw(ID) {

    BusService.getBusRouteToDraw(ID, OnCompleteGetBusRouteToDraw, OnError, OnTimeOut);
}